package com.dfrz.service;


import com.dfrz.entity.Result;
import com.dfrz.entity.Utilrecommend;
import com.dfrz.entity.Video;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

/**
 * @author 29877
 */
public interface VideoService {
    int addVideoM(Video video, MultipartFile videoImg) throws Exception;

    List<Video> selectLimit(Integer page, Integer num);

    Video selectvideobyid(Integer id);

    List<Video> selectorderbyscore();

    List<Utilrecommend>  seleltrecommend();

    List<Video> selectrandom();

    List<Video> selecthot();

    List<Video> selectvideoByName(String videoTitle);

    Integer addVideoU(Video videoInfo, MultipartFile video, MultipartFile videoImg) throws Exception;

    List<Video> searchVideo(String word);

    Map<String,Object> getVideoInfoByEdit();

    List<Video> getPageingEdit(Integer page);

    void deleteVideoEdit(Integer videoId);

    void upVideoInfo(MultipartFile videoImg, Video video) throws Exception;
}
